package com.duofan.gmall.common.constant;

public class CommonConstant {
    public static final String SESSION_KEY = "GSESSION_ID";
    public static final String DOMAIN = "gmall.com";

    public static final String URL_HOME= "http://" + DOMAIN;
    public static final String URL_AUTH = "http://auth." + DOMAIN;
    public static final String URL_CART = "http://cart." + DOMAIN;
    public static final String URL_SEARCH = "http://search." + DOMAIN;
    public static final String URL_ORDER = "http://order." + DOMAIN;

    public static final String REDIRECT_PRE = "redirect:";

    public static final String REDIRECT_HOME = REDIRECT_PRE + URL_HOME;
    public static final String REDIRECT_AUTH = REDIRECT_PRE + URL_AUTH;
    public static final String REDIRECT_CART = REDIRECT_PRE + URL_CART;
    public static final String REDIRECT_SEARCH = REDIRECT_PRE + URL_SEARCH;
    public static final String REDIRECT_ORDER = REDIRECT_PRE + URL_ORDER;
}
